package com.qf.demo03.contorller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
public class DateController {


        @GetMapping("/date")
        public Map<String,Object> getDate(){

            final java.util.Date date = new Date();

            final HashMap<String, Object> map = new HashMap<>();

            map.put("date",date);

            return map;

        }
    }

